Cube Yogi
Cube Yogi
Leader in Zoho Solutions/Consultation

Make Fields Required Dynamically

Question

Answer

You can find the solution to the question from the video below

The Parameters for the Workflow are given below

The Code Snippet is as follows

for each  item in Documents
{
	if(item.Document_Id.Expiration_Date == "WithExpiration" && item.Expiration_Date == null)
	{
		alert "Expiration Date is needed for " + item.Document_Id.Document_Name;
		cancel submit;
	}
}